// myclass.h
#ifndef MYCLASS_H
#define MYCLASS_H

#include "signal.h"
#include <iostream>

class MyClass {
public:
    Signal<int, std::string> mySignal; // 定义一个带有参数的信号

    void triggerSignal(int value, const std::string& text) {
        mySignal.emit(value, text);
    }

    void mySlot(int value, const std::string& text) {
        std::cout << "Slot called with value: " << value << " and text: " << text << std::endl;
    }
};

#endif // MYCLASS_H
